FROM node:12.8.0
RUN mkdir -p /egg-magazine
WORKDIR /egg-magazine
COPY package.json /egg-magazine/package.json
RUN npm install --registry=https://registry.npmmirror.com
COPY . /egg-magazine
CMD ["npm","start"]